package user;

import Book.BookList;
import opera.IOpera;

/**
 * @Author: shark爱吃辣椒
 * @Date: 2022-19-14:05
 * @Description:
 */
abstract public class User {
    protected String name;
    protected IOpera[] iOpera;

    public User(String name){
        this.name = name;
    }

    public abstract int menu();

    public void dowork(int choice , BookList bookList){
        this.iOpera[choice].work(bookList);
    }
}
